#include <errno.h>
#include <nxos.h>

int *__errno_location(void)
{
    int * errLocation = (int *)NX_TlsGetExtensionAddr(); /* tls extension save the libc errno */
	return errLocation;
}
